{% comment %}
#    Copyright 2012 New Mexico EPSCoR
#
#    This file is part of Teacher's P.E.T.
#
#    Teacher's P.E.T. is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Teacher's P.E.T. is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Teacher's P.E.T..  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% autoescape off %}
    <h1>{{Activity.title}} {% if Activity.activity_type == "PUBLIC" %}- Public/Anonymous{% endif %}{% if Activity.activity_type == "ANONYMOUS" %}- Anonymous{% endif %}<h1>
    <hr>
    {% for question,metric in Metrics.items %}
        <h3 class=>
            Question {{question.section_number}} {% if question.points %}({{question.points}} points){%endif%}
        </h3>
	<p class=>{% render question.question %}</p>
	<table class="small_table text_center" border="1"><tr><th>Answers</th><th>Count</th></tr>{% for answer, count in metric %}<tr><td>{{answer}}</td><td>{{count}}</td></tr>{% endfor %}</table>
	<hr>
{% endfor %}
{% endautoescape %}

